package com.rimi.bean;

import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * tb_user
 * @author 
 */
@Data
public class UserBean implements Serializable {
    private Integer userId;

    /**
     * 邮箱
     */
    private String userEmail;

    private String userPassword;

    private String userHeadImg;

    /**
     * 用户状态 0 启用 1禁用
     */
    private Integer userStatus;

    /**
     * 角色ID
     */
    private Integer userRole;

    /**
     * token
     */
    private String userToken;
    /**
     * token的有效时间
     */
    private LocalDateTime userTokenEndTime;

    @Override
    public String toString() {
        return this.getUserEmail();
    }

}